<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.zjr.domain.*"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="<%=path %>/skin/css/base_style.css" />
<link type="text/css" rel="stylesheet" href="<%=path %>/skin/css/form.css" />
<script type="text/javascript" src="<%=path %>/skin/js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="<%=path %>/skin/js/form.js"></script>
<script type="text/javascript">
	$(function() {
		var userPosition = "${sessionScope.existUser.position}";
		var Option1 = document.getElementById("option1");
		var Option2 = document.getElementById("option2");
		if(userPosition == "员工"){
			Option1.style.display = "none";
			Option2.style.display = "none";
		}else if(userPosition == "部长"){
			Option2.style.display = "none";
		}
	});
</script>
</head>
<body>
<form action="<%=path %>/log/log_modify.action" class="fm" method="post">
	<table class="fm_tab" align="center">
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">提交者：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="username" value='<s:property value="#request.modify_log.uid" />' class="fm_tt1" style="width:80%" readonly /></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">提交地点：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="place" value='<s:property value="#request.modify_log.place" />' class="fm_tt1" style="width:80%" readonly /></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">工作时长：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="duration" value='<s:property value="#request.modify_log.duration" />' class="fm_tt1" style="width:30%" readonly /><span class="fm_text">小时</span></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">提交时间：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="submittime" value='<s:property value="#request.modify_log.submittime" />' class="fm_tt1" style="width:80%" readonly /></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">日志状态：</span></td>
			<td width="35%" class="fm_td2">
				<select name="state">
					<option value="0">未审核</option>
					<option value="1" id="option1">审核中</option>
					<option value="2" id="option2">通过审核</option>
				</select>
			</td>
		</tr>
		<tr>
        	<td class="fm_td3 fyh"><span class="fm_text">日志内容：</span></td>
            <td class="fm_td4" colspan="3"><textarea style="width: 80%; height: 130px;" name="content" class="fm_textarea"><s:property value="#request.modify_log.content" /></textarea></td>
         </tr>
		<tr>
         	<td class="fm_td5" colspan="4">
         		<input type="hidden" name="lid" value="<s:property value="#request.modify_log.lid" />" />
         		<input type="submit" class="fm_button fyh" value="提&nbsp;&nbsp;&nbsp;&nbsp;交"/>
            </td>
         </tr>
	</table>
</form>
</body>
</html>